<?php
/**
* Add a script file to a page...
*/
class scriptFile extends elementInner
{
    public function scriptFile($src=NULL, $content = NULL, $type="text/javascript")
    {
        parent::elementInner('script');
        $this->addAttribute('src', $src);
        $this->addAttribute('type', $type);
        $this->addInner($content);
    }

    public function __toString()
    {
        return parent::__toString( false);
    }
}
?>